package application

import (
	"context"
	"usbipproxy/domain"
	"usbipproxy/pb"
)

type TcpMsgHandleService interface {
	Handle(msg *pb.ProxyMsg, userCli *domain.DispatchClient) error
}

type pbMsgHandler func(context.Context, *pb.ProxyMsg, *domain.DispatchClient) error

/*

var FactoryTcpMsgHandleSvc = &TcpMsgHandleServiceImplFactory{}

type TcpMsgHandleServiceImplFactory struct{}

func (f *TcpMsgHandleServiceImplFactory) Create(clientType pb.UsbIpType, msgNotifySvc service.MsgNotifyService) TcpMsgHandleService {
	if clientType == pb.UsbIpType_CLIENT_TYPE_TERM {
		return NewTcpMsgTermHandleService(msgNotifySvc)
	}

	return NewTcpMsgHostHandleService(msgNotifySvc)
}

type pbMsgHandler func(context.Context, *pb.ProxyMsg, *tcpclient.UserClient) error
*/
